<!DOCTYPE html>
<html>
<head>
    <title>版本表</title>
    <#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <!--<#if shiro.hasPermission("systemVersion:systemversion:save")>-->
            <!--<a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
        <!--</#if>-->
        <#if shiro.hasPermission("systemVersion:systemversion:update")>
        <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
    </#if>
    <#if shiro.hasPermission("systemVersion:systemversion:delete")>
    <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</#if>
</div>
<table id="jqGrid"></table>
<div id="jqGridPager"></div>
</div>

<div v-show="!showList" class="panel panel-default">
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>版本号 </div>
            <div class="col-sm-10">
                <input type="text" class="form-control input-sm" v-model="systemVersion.versionNo" placeholder="版本号 " />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>版本名字</div>
            <div class="col-sm-10">
                <input type="text" class="form-control input-sm" v-model="systemVersion.versionName" placeholder="版本名字" />
            </div>
        </div>
        <div class="form-group" v-show="systemVersion.id==null">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>平台来源</div>
            <div class="col-sm-10">
                <input type="text" class="form-control input-sm" v-model="systemVersion.appType" placeholder="平台来源"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>是否强制更新</div>
            <div class="col-sm-10">
                <select v-model="systemVersion.versionForce" class="form-control input-sm">
                    <option value=1>是</option>
                    <option value=0>否</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>下载地址</div>
            <div class="col-sm-10">
                <input type="text" class="form-control input-sm" v-model="systemVersion.downloadUrl" placeholder="下载地址" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>结束时间</div>
            <div class="col-sm-10">
                <input class="form-control input-sm" v-model="systemVersion.versionTime" @click="checkEndDate" placeholder="结束时间" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>备注</div>
            <div class="col-sm-10">
                <textarea cols="58" rows="10" v-model="systemVersion.versionContent" class="form-control" placeholder="备注"></textarea>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"><span style="color: red">*&nbsp;</span>最小版本</div>
            <div class="col-sm-10">
                <input type="text" class="form-control input-sm" v-model="systemVersion.versionMin" placeholder="最小版本" />
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定" />
            &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回" />
        </div>
    </form>
</div>
</div>

<script src="${request.contextPath}/statics/js/modules/systemVersion/systemversion.js?_${.now?long}"></script>
</body>
</html>
